package com.codestudy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.codestudy.entity.Comment;
import com.codestudy.entity.CommentLike;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 评论点赞表(CommentLike)表数据库访问层
 *
 * @author makejava
 * @since 2024-04-13 14:18:48
 */
@Mapper
public interface CommentLikeDao extends BaseMapper<CommentLike> {
    /**
     * 批量删除评论点赞的状态
     */
    int deleteBatchByCid(List<Integer> list);

    /**
     * 查询评论点赞数据
     */
    List<Comment> selectByU(CommentLike commentLike);

    int commentLikeInsert(CommentLike cl);

    void commentLikeDelete(Integer commentId);

    List<CommentLike> selectByCID(Integer uid);

    /**
     * 查询评论点赞的数量
     */
    Integer likeSelectCount(Integer commentId);

    List<CommentLike> selectBycommentLikeList(CommentLike commentLike);
}

